Optimal. Leaf size=22 \[ -\frac {\tanh ^{-1}(\cos (c+d x))}{a d}-\frac {x}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {2839, 3770, 8} \[ -\frac {\tanh ^{-1}(\cos (c+d x))}{a d}-\frac {x}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2839
Rule 3770
Rubi steps
\begin {align*} \int \frac {\cos (c+d x) \cot (c+d x)}{a+a \sin (c+d x)} \, dx &=-\frac {\int 1 \, dx}{a}+\frac {\int \csc (c+d x) \, dx}{a}\\ &=-\frac {x}{a}-\frac {\tanh ^{-1}(\cos (c+d x))}{a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.09, size = 37, normalized size = 1.68 \[ -\frac {-\log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )+\log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )+c+d x}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.49, size = 37, normalized size = 1.68 \[ -\frac {2 \, d x + \log \left (\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) - \log \left (-\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right )}{2 \, a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 31, normalized size = 1.41 \[ -\frac {\frac {d x + c}{a} - \frac {\log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}\right )}{a}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.38, size = 37, normalized size = 1.68 \[ -\frac {2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a d}+\frac {\ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.43, size = 52, normalized size = 2.36 \[ -\frac {\frac {2 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a} - \frac {\log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 8.77, size = 79, normalized size = 3.59 \[ \frac {2\,\mathrm {atan}\left (\frac {\sqrt {2}\,\left (\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )-\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{2\,\cos \left (\frac {c}{2}-\frac {\pi }{4}+\frac {d\,x}{2}\right )}\right )}{a\,d}+\frac {\ln \left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )}{a\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {\cos ^{2}{\left (c + d x \right )} \csc {\left (c + d x \right )}}{\sin {\left (c + d x \right )} + 1}\, dx}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________